package com.newasia.shopping.dal.persistence;

import com.newasia.shopping.dal.entitys.ItemSpec;
import com.newasia.shopping.dal.entitys.ItemSpecExample;
import java.util.List;

import com.newasia.shopping.dal.entitys.returnValue.ItemSpecOption;
import com.newasia.shopping.dal.entitys.returnValue.SpecOption;
import org.apache.ibatis.annotations.Param;

public interface ItemSpecMapper {
    long countByExample(ItemSpecExample example);

    int deleteByExample(ItemSpecExample example);

    int deleteByPrimaryKey(Long id);

    int insert(ItemSpec record);

    int insertSelective(ItemSpec record);

    List<ItemSpec> selectByExample(ItemSpecExample example);

    ItemSpec selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") ItemSpec record, @Param("example") ItemSpecExample example);

    int updateByExample(@Param("record") ItemSpec record, @Param("example") ItemSpecExample example);

    int updateByPrimaryKeySelective(ItemSpec record);

    int updateByPrimaryKey(ItemSpec record);

    List<ItemSpecOption> selectItemSpecOptionBySpuId(Long spuId);

    List<ItemSpecOption> selectItemSpecOptionByvalueId(@Param("spuId") Long spuId,
                                                     @Param("valueIds") List<Long> valueIds);
}